#include "delay.h"
#include "intrins.h"
void Delay490us()		//@11.0592MHz
{
	unsigned char i, j;

	_nop_();
	i = 6;
	j = 65;
	do
	{
		while (--j);
	} while (--i);
}


void DelayUs2x(unsigned char t)        //@11.0592MHz
{   
	unsigned char i;
   while(t--)
   {
	_nop_();
	_nop_();
	i = 2;
	while (--i);
   }
}
void DelayMs(unsigned int t)
{
     
 while(t--)
 {
	 Delay490us();
	 Delay490us();
 }
}

void DelayUs(unsigned int n)
{
	while(n--)
      _nop_();
}
